package com.frxuexi.user.intent

import com.frxuexi.lib_base.IUiIntent
import com.frxuexi.lib_base.room.AskLeave
import com.frxuexi.lib_base.room.User

sealed class UserIntent:IUiIntent {
    data class register(val user: User):UserIntent()

    data class login(val uname:String,val upass:String,val role:String):UserIntent()

    data class addEmployee(val map: Map<String,Any>):UserIntent()

    data class loginNet(val map: Map<String, String>):UserIntent()

    /**
     * 申请请假
     */
    data class addApprove(val map: Map<String,Any>):UserIntent()

    data class getApprs(val status:String):UserIntent()

    data class approve(val map: Map<String,Any>):UserIntent()

    data class addAsk(val askLeave: AskLeave):UserIntent()
}
